import request from '@/utils/request'

// 查询水情在线监测站数据记录列表
export function listStStationR(query) {
  return request({
    url: '/waterManagement/StStationR/list',
    method: 'get',
    params: query
  })
}

// 查询水情在线监测站数据记录详细
export function getStStationR(statCd) {
  return request({
    url: '/waterManagement/StStationR/' + statCd,
    method: 'get'
  })
}

// 查询水情在线监测站数据记录详细
export function getStStationR_new(query) {
  return request({
    url: '/waterManagement/StStationR/getInfo',
    method: 'get',
    params: query
  })
}

// 新增水情在线监测站数据记录
export function addStStationR(data) {
  return request({
    url: '/waterManagement/StStationR',
    method: 'post',
    data: data
  })
}

// 修改水情在线监测站数据记录
export function updateStStationR(data) {
  return request({
    url: '/waterManagement/StStationR',
    method: 'put',
    data: data
  })
}

// 删除水情在线监测站数据记录
export function delStStationR(statCd) {
  return request({
    url: '/waterManagement/StStationR/' + statCd,
    method: 'delete'
  })
}

// 删除水情在线监测站数据记录
export function delStStationR_new(query) {
  return request({
    url: '/waterManagement/StStationR',
    method: 'delete',
    params: query
  })
}

// 在线监测站数据查询遗漏点时间
export function selMissingTime(query) {
  return request({
    url: '/waterManagement/StStationR/selMissingTime',
    method: 'get',
    params: query
  })
}